package com.itcast.springboot.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("意见反馈")
public class Feedback {
    @ApiModelProperty("反馈id")
    private Integer fbid;
    @ApiModelProperty("用户id")
    private String userId;
    @ApiModelProperty("反馈内容")
    private String opinion;
    @ApiModelProperty("图片链接")
    private String src;
    @ApiModelProperty("图片链接2")
    private String src2;
    @ApiModelProperty("微信号")
    private String wechat;
    @ApiModelProperty("反馈时间")
    //入参格式化
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date createTime;
    @ApiModelProperty("是否已读")
    private Integer isRead;
    @ApiModelProperty("是否解决")
    private Integer isSolve;
}
